DF.Ram = DF.Ram.str.replace ( 'GB' , '' ).astype ( 'int64' ) DF.Weight = DF.Weight.str.replace ( 'kg' , '' ).astype ( 'float64' )